#ifndef SPLASHSCREEN_H
#define SPLASHSCREEN_H

#include <QWidget>
#include <QTimer>
#include <QProgressBar>

class SplashScreen : public QWidget
{
    Q_OBJECT

public:
    explicit SplashScreen(QWidget *parent = nullptr);
    ~SplashScreen();

    void setProgress(int value);  // 设置进度
    void showMessage(const QString &message);  // 显示消息

signals:
    void finished();
private slots:
    void updateProgress();

private:
    QProgressBar *m_progressBar;
    QTimer *m_timer;
    int m_progress;
};

#endif // SPLASHSCREEN_H
